package com.xzssmk.leisure.x.mapper;

import com.xzssmk.leisure.x.po.ReviewScan;
import com.xzssmk.leisure.x.po.ReviewScanExample;
import com.xzssmk.leisure.x.vo.CardUseHistory;
import com.xzssmk.leisure.x.vo.SwipeCardVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReviewScanMapper {
    long countByExample(ReviewScanExample example);

    int deleteByExample(ReviewScanExample example);

    int deleteByPrimaryKey(Integer reviewId);

    int insert(ReviewScan record);

    int insertSelective(ReviewScan record);

    List<ReviewScan> selectByExample(ReviewScanExample example);

    ReviewScan selectByPrimaryKey(Integer reviewId);

    int updateByExampleSelective(@Param("record") ReviewScan record, @Param("example") ReviewScanExample example);

    int updateByExample(@Param("record") ReviewScan record, @Param("example") ReviewScanExample example);

    int updateByPrimaryKeySelective(ReviewScan record);

    int updateByPrimaryKey(ReviewScan record);

    List<SwipeCardVo> swipeCardList(@Param("issuePeriodId") String issuePeriodId, @Param("scenicSpotId") String scenicSpotId);

    List<CardUseHistory> cardUseHistory(@Param("cardNumber") String cardNumber);
}